package com.developer.t24haber.activity;

import com.developer.t24haber.fragment.NewsFragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;

public class NewsActivity extends AbstractSingleFragmentActivity {

	public static final String EXTRA_NEWS_LINK = "EXTRA_NEWS_LINK";

	@Override
	Fragment createFragment() {
		String newsLink = getIntent().getStringExtra(EXTRA_NEWS_LINK);
		Bundle args = new Bundle();
		args.putString(EXTRA_NEWS_LINK, newsLink);
		NewsFragment fragment = new NewsFragment();
		fragment.setArguments(args);
		return fragment;
	}

}
